<?php

use yii\helpers\Html;
use yii\web\NotFoundHttpException;

//chỉ admin mới có quyền
if(Yii::$app->user->isGuest || Yii::$app->user->identity->acc_type!=0)
{
	throw new NotFoundHttpException('The requested page does not exist.');
}
else
{

	/* @var $this yii\web\View */
	/* @var $model app\models\Project */

	$this->title = 'Cập nhật dự án: ' . ' ' . $model->name;
	//$this->params['breadcrumbs'][] = ['label' => 'Projects', 'url' => ['index']];
	//$this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]];
	//$this->params['breadcrumbs'][] = 'Update';
	?>
	<div class="project-update">

		<h1><?= Html::encode($this->title) ?></h1>

		<?= $this->render('_form', [
			'model' => $model,
		]) ?>

	</div>
<?php
}
?>
